import request from '@/utils/axios'
import store from '@/store'

// 健康信息
export const getHealthInfo = (data?: object) => {
  return request.get({
    url: '/disease/manage/patient/health-info',
    params: data
  })
}

// 既往检验检查
export const getExamHistory = (data?: object) => {
  return request.get({
    url: '/disease/manage/patient/exam-history',
    params: data
  })
}

// 健康信息更新
export const updateHealthInfo = (data?: object) => {
  return request.post({
    url: '/disease/manage/patient/update-with-old',
    // url: '/disease/manage/patient/update',
    data: data
  })
}

// 原始数据
export const getDiagnosis = (data: any) => {
  return request.get({
    url: '/disease/manage/patient/diagnosis',
    params: data
  })
}
